package com.morehair.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * Description:
 * Date: 2021/6/9
 * Time: 16:13
 * author: zhang wei
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CategoryInHomeVo {
    private CurrentCategory currentCategory;
    private List<BrotherCategory> brotherCategory;
    private ParentCategory parentCategory;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CurrentCategory {
        private Integer id;
        private String name;
        private String keywords;
        private String desc;
        private Integer pid;
        private String iconUrl;
        private String picUrl;
        private String level;
        private Integer sortOrder;
        private Date addTime;
        private Date updateTime;
        private Boolean deleted;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class ParentCategory {
        private Integer id;
        private String name;
        private String keywords;
        private String desc;
        private Integer pid;
        private String iconUrl;
        private String picUrl;
        private String level;
        private Integer sortOrder;
        private Date addTime;
        private Date updateTime;
        private Boolean deleted;
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class BrotherCategory {
        private Integer id;
        private String name;
        private String keywords;
        private String desc;
        private Integer pid;
        private String iconUrl;
        private String picUrl;
        private String level;
        private Integer sortOrder;
        private Date addTime;
        private Date updateTime;
        private Boolean deleted;
    }
}
